 $(function(){

            $('.section1').find('img').delay(500).animate({
                left: '0',bottom:'-108px'
              }, 1500, 'easeOutExpo');
              $('.section1').find('.sec-cont').delay(800).animate({
                right: '0'
              }, 1500, 'easeOutExpo');
              $('.section1 .act').delay(2000).queue(function(){
                $('.section1 .act').addClass('bounce');
              })
        $('#dowebok').fullpage({
          sectionsColor: ['#fafafa', '#f8d7d8', '#eef6ff', '#c7eef3'],
          loop:false,
          afterLoad: function(anchorLink, index){
            // if(index == 1 || index ==''){
              $('.section1').find('img').delay(500).animate({
                left: '0',bottom:'-108px'
              }, 1500, 'easeOutExpo');
              $('.section1').find('.sec-cont').delay(800).animate({
                right: '0'
              }, 1500, 'easeOutExpo');
               $('.section1 .act').delay(2000).queue(function(){
                $('.act').addClass('bounce');
              })
            // }
            if(index == 2){
              $('.section2').find('.sec-img>img').delay(500).animate({
                right: '0',bottom:'-108px'
              }, 1500, 'easeOutExpo');
              $('.section2').find('.sec-cont').delay(800).animate({
                left: '0'
              }, 1500, 'easeOutExpo');
              $('.section2 .act').delay(2000).queue(function(){
                $('.section2 .act').addClass('swing');
              })
            }
            if(index == 3){
              $('.section3').find('img').delay(500).animate({
                left: '0',bottom:'-108px'
              }, 1500, 'easeOutExpo');
              $('.section3').find('.sec-cont').delay(1000).animate({
                right: '0'
              }, 1500, 'easeOutExpo');
              $('.section3 .act').delay(2000).queue(function(){
                $('.section3 .act').addClass('shake');
              })
            }
            if(index == 4){
              $('.section4').find('img').fadeIn(2000);
            }
          },
          onLeave: function(index, direction){
            if(index == '1'){
              $('.section1').find('.sec-img>img').delay(500).animate({
                left: '-260%'
              }, 1500, 'easeOutExpo');
              $('.section1').find('.sec-cont').delay(500).animate({
                right: '-260%'
              }, 1500, 'easeOutExpo');
            }
            if(index == '2'){
              $('.section2').find('img').delay(500).animate({
                right: '-180%'
              }, 1500, 'easeOutExpo');
              $('.section2').find('.sec-cont').delay(800).animate({
                left: '-180%'
              }, 1500, 'easeOutExpo');
              $('.act').removeClass('bounce');
            }
            if(index == '3'){
              $('.section3').find('img').delay(500).animate({
                left: '-260%'
              }, 1500, 'easeOutExpo');
              $('.section3').find('.sec-cont').delay(500).animate({
                right: '-260%'
              }, 1500, 'easeOutExpo');
            }
            if(index == '4'){
              $('.section4').find('img').fadeOut(2000);
            }
          }
        });
        $('#sec-footer').css('height','60px');
        $('#sec-footer .fp-tableCell').css('height','60px');
      });